export const addRules = {
  departName: [
    {
      required: true,
      message: '请输入部门名称',
      trigger: 'blur'
    }
  ],
  departCode: [
    {
      required: true,
      message: '请输入部门编号',
      trigger: 'blur'
    }
  ],
  enabled: [
    {
      type: 'number',
      required: true,
      message: '请选择是否可用',
      trigger: 'change'
    }
  ]
};

export const tableColumns = [
  {
    title: '部门名称',
    dataIndex: 'departName'
  },
  {
    title: '部门编号',
    dataIndex: 'departCode'
  },
  {
    title: '备注',
    dataIndex: 'remark'
  },
  {
    title: '更新时间',
    dataIndex: 'updateTime'
  },
  {
    title: '操作栏',
    key: 'operation',
    align: 'center',
    slots: {
      customRender: 'operation'
    },
    width: '120px'
  }
]